home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 112 / EnigmaAmiga112CD.iso / dalla rivista / awnpipe / awnp / awnp-docs / drawlist.doc < prev    next >
Text File  |  2000-05-14  |  2KB  |  72 lines

  1. DrawList parameters
  2. -------------------
  3.  
  4. The drawlist keyword does not produce a gadget. It creates an image to be used later. Up to 10 images can be predefined, the last one defined is the first one used. Last In First Out.
  5.  
  6. bindata (bd)
  7.  
  8. The drawlistdata will be passed to this pipe in binary after the command line. The drawlistdata parameter now gives the length of the data. Setting datain means the data is read from an external file rather than the pipe.
  9.  
  10. dataout="filename" (do=)
  11.  
  12.  Send the data for this gadget to a file. This is a development tool to allow you to create binary data to pass to the pipe. It is ignored if the Bindata keyword is also present.
  13.  
  14. datain="filename" (di=)
  15.  
  16.  Read the data for this gadget from a file. It is ignored if the Bindata keyword is not present.
  17.  
  18. minheight=number (minh)
  19.  
  20.  Set the height of the virtual raster the drawlist data
  21. relates to.
  22.  
  23. minwidth=number (minw)
  24.  
  25.  Set the width of the virtual raster the drawlist data relates
  26. to.
  27.  
  28. drawlistdata="value1|value2|..."   (dld=)
  29.  
  30.  The draw list data defines a set of drawing instruction to create an image. Each drawing instruction has 6 values.
  31. directive|X1|Y1|X2|Y2|pen
  32.  
  33. The possible directives are
  34.  
  35. 0 END
  36. 1 LINE
  37. 2 RECT
  38. 3 FILL
  39. 4 ELLIPSE
  40. 5 CIRCLE
  41. 6 LINEPAT
  42. 7 FILLPAT
  43. 8 AMOVE
  44. 9 ADRAW
  45. 10 AFILL
  46. 11 BEVELBOX
  47. 12 ARC
  48. 13 START = BOUNDS
  49. 14 LINESIZE
  50.  
  51. Register as a Class Act developer and read the docs for more info on drawlists.
  52.  
  53. When sending binary data you send an array of structure DrawLists.
  54.  
  55. struct DrawList
  56.             {
  57.                 WORD dl_Directive;
  58.                 WORD dl_X1, dl_Y1;
  59.                 WORD dl_X2, dl_Y2;
  60.                 WORD dl_Pen;
  61.             };
  62. The last structure MUST be END (dl_Directive=0).
  63.  
  64. Definition Reply
  65. -----------------
  66.  
  67.  When the image creation is successful the pipe replies with
  68.  
  69. 'ok'
  70.  
  71.  
  72.